package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 学习管理
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
@Data
@TableName("IG_LEARNING_MANAGE")
public class IgLearningManage extends Model<IgLearningManage> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId("LEARNING_ID")
    private String learningId;

    /**
     * 学习主题
     */
    @TableField("LEARNING_THEME")
    private String learningTheme;

    /**
     * 学习类型 0 1 2 3
     */
    @TableField("LEARNING_TYPE")
    private String learningType;

    /**
     * 学习内容
     */
    @TableField("LEARNING_CONTENT")
    private String learningContent;

    /**
     * 上传人
     */
    @TableField("UPLOADER")
    private String uploader;

    /**
     * 上传时间
     */
    @TableField("UPLOAD_DATE")
    private Date uploadDate = new Date();

    /**
     * 查阅人数
     */
    @Version
    @TableField("REFER_PERSON_NUM")
    private Integer referPersonNum;

    @Override
    protected Serializable pkVal() {
        return this.learningId;
    }

}
